package com.baizhiedu;

import com.baizhiedu.injection.UserDao;
import com.baizhiedu.injection.UserDaoImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;

/**
 * ClassName: AppConfig4
 * Description:
 * Date: 2022/12/03 PM 11:14:31
 * <p>
 * project: spring5
 * package: com.baizhiedu
 * email: 1085844536@qq.com
 * version:
 *
 * @author WangGuojian
 */
@Configuration
//@ImportResource("classpath:applicationContext.xml")
public class AppConfig4 {

    @Bean
    public UserDao userDao() {
        return new UserDaoImpl();
    }
}
